#HTML <slot>
The <slot> HTML element—part of the Web Components technology suite—is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.
#Attributes
name
: The slot's name. When the slot's containing component gets rendered, the slot is rendered with the custom element's child that has a matchingslot
attribute. A named slot is a<slot>
element with aname
attribute. Unnamed slots have the name default to the empty string. Names should be unique per shadow root: if you have two slots with the same name, all of the elements with a matchingslot
attribute will be assigned to the first slot with that name.